Official Google Cloud Certified Professional Cloud Security Engineer Exam Guide by Ankush Chowdhary & Prashant Kulkarni

Official Google Cloud Certified Professional Cloud Security Engineer Exam Guide by Ankush Chowdhary & Prashant Kulkarni

Author:Ankush Chowdhary & Prashant Kulkarni
Language: eng
Format: epub
Publisher: Packt
Published: 2023-11-15T00:00:00+00:00


Step 3: Setting a key rotation period and starting time

Once the key is created, you can set a rotation period with a starting time. Here is the command that will allow you to do so:

gcloud kms keys create key
--keyring key-ring-name
--location location
--purpose "encryption"
--rotation-period rotation-period
--next-rotation-time next-rotation-time

Replace key with a name for the key. Replace key-ring-name with the name of the existing key ring where the key will be located. Replace location with the Cloud KMS location for the key ring. Replace rotation-period with an interval, such as 30d to rotate the key every 30 days. Replace next-rotation-time with a timestamp at which to begin the first rotation, such as 1970-01-01T01:02:03.

Now that you have created a key for symmetric encryption, let us see how to use it to encrypt content.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.